<template>
  <div class="delte">
    <div class="delte-swpier">
      <h3>{{prostate.nickname}}</h3>
      <h4>{{prostate.signature}}</h4>
      <img :src="prostate.avatarUrl" alt="" class="cs">
      <h1>{{prolist.name}}</h1>
      <h2>{{prolist.description}}</h2>
      <img :src="prostate.backgroundUrl" alt="" class="cs">
    </div>
    <div class="top" @click="$router.go(-1)">
      <span>返回</span>
    </div>
  </div>
</template>

<script>
import { getDetail } from '@/api'
export default {
  name: '',
  data () {
    return {
      prostate: [],
      prolist: []
    }
  },
  mounted () {
    const { id } = this.$route.params
    getDetail({ id }).then(res => {
      this.prolist = res.data.playlist
      this.prostate = res.data.playlist.creator
    })
  }
}
</script>

<style lang="scss" scoped>
.cs{
   width: 100%;
}
.delte{
  overflow: auto;
  height: 100%;
  padding: 0.08rem;
  background: #222 ;
  position: relative;
  .delte-swpier{
    border: 0.5px solid #ccc;
    background: #e7e4e4;
    padding: 0.1rem;
    h3{
      text-align: center;
      line-height: 0.2rem;
      margin-bottom: 0.1rem;
    }
    h4{
      text-align: center;
      margin-bottom: 0.05rem;
      font-size: 0.11rem;
    }
    img{
      margin: 0.1rem 0;
    }
  }
  .top{
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 0.4rem;
    height: 0.18rem;
    background: rgba(255, 255, 255, 0.822);
    text-align: center;
    font-size: 0.12rem;
    border-radius: 1.6rem;
    color: #222;
  }
}
</style>
